<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:80:"/www/wwwroot/qzp2.qhs.cc/public/../application/admin/view/school_class/edit.html";i:1591947681;s:67:"/www/wwwroot/qzp2.qhs.cc/application/admin/view/layout/default.html";i:1588765311;s:64:"/www/wwwroot/qzp2.qhs.cc/application/admin/view/common/meta.html";i:1588765311;s:66:"/www/wwwroot/qzp2.qhs.cc/application/admin/view/common/script.html";i:1588765311;}*/ ?>
<!DOCTYPE html>
<html lang="<?php echo $config['language']; ?>">
    <head>
        <meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">

<link rel="shortcut icon" href="/assets/img/favicon.ico" />
<!-- Loading Bootstrap -->
<link href="/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/assets/js/html5shiv.js"></script>
  <script src="/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config:  <?php echo json_encode($config); ?>
    };
</script>
    </head>

    <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <section class="content-header hide">
                                <h1>
                                    <?php echo __('Dashboard'); ?>
                                    <small><?php echo __('Control panel'); ?></small>
                                </h1>
                            </section>
                            <?php if(!IS_DIALOG && !\think\Config::get('fastadmin.multiplenav')): ?>
                            <!-- RIBBON -->
                            <div id="ribbon">
                                <ol class="breadcrumb pull-left">
                                    <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
                                </ol>
                                <ol class="breadcrumb pull-right">
                                    <?php foreach($breadcrumb as $vo): ?>
                                    <li><a href="javascript:;" data-url="<?php echo $vo['url']; ?>"><?php echo $vo['title']; ?></a></li>
                                    <?php endforeach; ?>
                                </ol>
                            </div>
                            <!-- END RIBBON -->
                            <?php endif; ?>
                            <div class="content">
                                <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Class_name'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-class_name" class="form-control" name="row[class_name]" type="text"
                   value="<?php echo htmlentities($row['class_name']); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Class_type'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-class_type" data-rule="required" data-source="School_class_type/index"
                   data-field="name" class="form-control selectpage" placeholder="输入为模糊搜索" name="row[class_type]"
                   type="text" value="<?php echo htmlentities($row['class_type']); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">班主任:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-admin_id" data-rule="required" data-source="auth/admin/index"
                   data-field="nickname" class="form-control selectpage" placeholder="输入为模糊搜索" name="row[admin_id]"
                   type="text" value="<?php echo htmlentities($row['admin_id']); ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Remind'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-remind" class="form-control" name="row[remind]" placeholder="0为不通知" value="<?php echo $row['remind']; ?>"
                   type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">选择科目:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-Subject_id" data-rule="required" data-source="school_subject/index"
                   data-field="subject_name" class="form-control selectpage" placeholder="输入为模糊搜索"
                   name="row[subject_id]" type="text" value="<?php echo $row['subject_id']; ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">总课时:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-total_class_hour" class="form-control" name="row[total_class_hour]" type="text"
                   value="<?php echo $row['total_class_hour']; ?>">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">是否能请假:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                <?php if(is_array($isleaveList) || $isleaveList instanceof \think\Collection || $isleaveList instanceof \think\Paginator): if( count($isleaveList)==0 ) : echo "" ;else: foreach($isleaveList as $key=>$vo): ?>
                <label for="row[is_leave]-<?php echo $key; ?>"><input id="row[is_leave]-<?php echo $key; ?>" name="row[is_leave]" type="radio"
                                                         value="<?php echo $key; ?>" <?php if(in_array(($key), is_array($row['is_leave'])?$row['is_leave']:explode(',',$row['is_leave']))): ?>checked<?php endif; ?>
                    /> <?php echo $vo; ?></label>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">请假扣课时(0为不扣课时):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-class_hour" class="form-control" name="row[class_hour]" value="<?php echo $row['class_hour']; ?>"
                   type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">请假上限次数(0为不限制):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-leave_limit" class="form-control" name="row[leave_limit]" value="<?php echo $row['leave_limit']; ?>"
                   type="number">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">班级优惠:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                <?php if(is_array($classdiscountList) || $classdiscountList instanceof \think\Collection || $classdiscountList instanceof \think\Paginator): if( count($classdiscountList)==0 ) : echo "" ;else: foreach($classdiscountList as $key=>$vo): ?>
                <label for="row[class_discount]-<?php echo $key; ?>"><input id="row[class_discount]-<?php echo $key; ?>"
                                                               name="row[class_discount]" type="radio" value="<?php echo $key; ?>"
                                                               <?php if(in_array(($key), is_array($row['class_discount'])?$row['class_discount']:explode(',',$row['class_discount']))): ?>checked<?php endif; ?>
                    /> <?php echo $vo; ?></label>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">课时一口价(元):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control" name="row[price]" value="<?php echo $row['price']; ?>" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">课时折扣(%):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-discount" class="form-control" name="row[discount]" value="<?php echo $row['discount']; ?>" type="text">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Start_time'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss"
                   data-use-current="true" name="row[start_time]" type="text"
                   value="<?php echo $row['start_time']?datetime($row['start_time']):''; ?>">
        </div>
    </div>


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled"><?php echo __('OK'); ?></button>
            <button type="reset" class="btn btn-default btn-embossed"><?php echo __('Reset'); ?></button>
        </div>
    </div>
</form>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version']); ?>"></script>
    </body>
</html>